Skip to content

ext/soap: fix NULL deref on empty Body with SOAPAction (RPC) - #161

Closed
iliaal wants to merge 1 commit into
PHP-8.5from
soap-ss007-empty-body-soapaction
Closed

ext/soap: fix NULL deref on empty Body with SOAPAction (RPC)#161
iliaal wants to merge 1 commit into
PHP-8.5from
soap-ss007-empty-body-soapaction

Conversation

@iliaal

@iliaal iliaal commented Jul 16, 2026

Copy link
Copy Markdown
Owner

When SoapServer resolves the operation via the SOAPAction header and the SOAP Body has no element child, func remains NULL. The RPC path then did func = func->children and crashed.

Guard the children walk so empty-body requests with a matching SOAPAction are handled safely.

@iliaal
iliaal force-pushed the soap-ss007-empty-body-soapaction branch from 4d2dbdb to 298fdb8 Compare July 16, 2026 00:51
@iliaal
iliaal changed the base branch from master to PHP-8.4 July 16, 2026 11:26
@iliaal
iliaal force-pushed the soap-ss007-empty-body-soapaction branch from 298fdb8 to 563dc2a Compare July 16, 2026 11:26
When SoapServer resolves the operation via the SOAPAction header and the
SOAP Body has no element child, func remains NULL. The RPC branch then
did func = func->children and crashed. Guard the children walk so
empty-body requests with a matching SOAPAction are handled safely.
@iliaal
iliaal changed the base branch from PHP-8.4 to PHP-8.5 July 16, 2026 11:29
@iliaal
iliaal force-pushed the soap-ss007-empty-body-soapaction branch from 563dc2a to 88834fb Compare July 16, 2026 11:29
@iliaal iliaal closed this Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant